<?php
namespace app\chat\controller;

class Index
{
    public function index()
    {
        $room_id = input("room", 1);
        $users = [
            [
                "openid"=>"oS0pJv-8O_F9SX3lgAQlfpJKtZIM",
                "nickname"=>"含妖妖",
                "headimgurl"=>"http://wx.qlogo.cn/mmopen/ajNVdqHZLLDdNrHx3lKc5tFLYgJ9NgAx00asYR2FCgibRFicsZAZJpXvkygeC3z7OKoibUyNQwl37IfQjn7AydkoxtsKSpvLlhjVUzTzG33PwQ/0",
                "sex"=>"2"
            ],
            [
                "openid"=>"oEryJwHVoQgkgbA_icbpOiA0ufHw",
                "nickname"=>"苦涩的玫瑰",
                "headimgurl"=>"http://wx.qlogo.cn/mmopen/ajNVdqHZLLBjaMicXJfsANagcNVgxycgMDzWVaP95XfkHyeG56qrwdUnRNmvlPU32icsg3cXXG3kYWW72Lv4Yo6w/0",
                "sex"=>"2"
            ],
            [
                "openid"=>"oI0nQw4F6A5hrFP7-yR09Omr1yDQ",
                "nickname"=>"嘉欣",
                "headimgurl"=>"http://wx.qlogo.cn/mmopen/CRp6Eich7AiahB8D3FcXGz4hQSr28w6NibGT8cZVRjFSJ6DUZstJT54w6jRxVOaibPJDXkoiav4cE7LHaZg96CnLXRev95eaXWd4V/0",
                "sex"=>"2"
            ],
            [
                "openid"=>"oS0pJv41mN0MlRnwnDNHC5DSoGXY",
                "nickname"=>"小公举的饱饱",
                "headimgurl"=>"http://wx.qlogo.cn/mmopen/sKGaWCBHwrtzAbZ0nlToria6jwM92Sh0uzw8561KyqeiaW7wnbjpMRa0A2IdPheKdeMq3UjQCNvGh6x0ib1yGH9rGYbl94VpIzj/0",
                "sex"=>"2"
            ],
            [
                "openid"=>"oEryJwO8CibseJIlj24Hb7iM5aBk",
                "nickname"=>"倚楼听风雨",
                "headimgurl"=>"http://wx.qlogo.cn/mmopen/13frbs2CnApmAJ3n1pO0OYPiaIAotXDtMW7SoEJwIvSTf6HdGETYicX5M2EW4ZoDCZr7ic3q8zEtJ59hm2Sc0wic5VlCrJI4vJon/0",
                "sex"=>"2"
            ],
        ];
        $user = $users[rand(0,4)];
        return view("index", compact('room_id', 'user'));
    }
}
